"""
数据清洗工具
"""
from typing import Dict, Any


class DataCleaner:
    """
    数据清洗工具
    """
    def clean(self, data: Dict[str, Any]) -> Dict[str, Any]:
        """
        清洗数据
        
        Args:
            data: 原始数据
        """
        # 去除空值
        cleaned_data = {k: v for k, v in data.items() if v is not None}
        
        # 标准化字段名
        cleaned_data = {k.lower(): v for k, v in cleaned_data.items()}
        
        return cleaned_data